import 'package:flutter/material.dart';
import 'text.dart';
import 'image.dart';
import 'button.dart';

class BasicPage extends StatefulWidget {
  const BasicPage({required Key key}) : super(key: key);
  @override
  BasicState createState() => BasicState();
}

class BasicState extends State<BasicPage> with WidgetsBindingObserver{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("BasicComponents demo")),
      body: Center(
        child: Column(
          children: <Widget>[
            basicText,
            richText,
            assetImage,
            networkImage,
            floatingActionButton,
            elevatedButton,
            filledButton,
            outlinedButton,
            textButton,
            // segmentedButton
          ],
        ),
      ),
    );
  }
}